#!/usr/bin/make -f

include /usr/share/quilt/quilt.make

build: patch build-stamp
build-stamp:
	dh_testdir
	python $(CURDIR)/setup.py build --build-base=$(CURDIR)/debian/oggconvert/build
	touch $@

clean: unpatch
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -fr $(CURDIR)/build $(CURDIR)/mo
	rm -f $(CURDIR)/OggConvert/*.pyc
	dh_clean build-stamp

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs
	python setup.py install --root=$(CURDIR)/debian/oggconvert

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs
	dh_installman -poggconvert data/oggconvert.1
	dh_install
	dh_pycentral
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
